package com.ty.store.mapper;

import com.ty.store.entity.Address;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Configuration;

import java.util.Date;
import java.util.List;

/**
 * @author ty
 */
public interface AddressMapper {
    Integer insert(Address address);
    Integer countByUid(Integer uid);
    List<Address> findByUid(Integer uid);
    Address findByAid(Integer aid);
    Integer updateNonDefaultByUid(Integer uid);
    Integer updateDefaultByAid(@Param("aid") Integer aid,
                               @Param("modifiedUser") String modifiedUser,
                               @Param("modifiedTime") Date modifiedTime);
    Integer deleteByAid(Integer aid);

}
